package study.dubbo.springcloud.provider.service;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;
import study.dubbo.api.service.EchoService;

@Slf4j
@Component
@DubboService
public class EchoServiceImpl implements EchoService {

    @Override
    public String echo(String name) {
        log.info("echo echo echo, {}", name);
        return String.format("echo echo echo, %s", name);
    }
}
